import request from './request.js'
import uploads from './upload.js'

/**
 * 授权登录
 * @param {*} data 
 */
// 登录
export function userLogin(data) {
	return request({
		url: '101',
		data: data,
		method: 'POST',
	})
}
// 注册
export function userRegister(data) {
	return request({
		url: `102`,
		data: data,
		method: 'POST',
	})
}
// 获取验证码
export function userCode(data) {
	return request({
		url: '103',
		data: data,
		method: 'POST',
	})
}
// 实名信息
export function realName(data) {
	return request({
		url: '104',
		data: data,
		method: 'POST',
	})
}
// 首页
export function indexInfo(data) {
	return request({
		url: '105',
		data: data,
		method: 'POST',
	})
}
// 申请贷款下拉信息
export function selectInfo(data) {
	return request({
		url: '106',
		data: data,
		method: 'POST',
	})
}
// 申请贷款提交
export function applyLoan(data) {
	return request({
		url: '107',
		data: data,
		method: 'POST',
	})
}
// 贷款等待审核
export function applyState(data) {
	return request({
		url: '108',
		data: data,
		method: 'POST',
	})
}
// 贷款列表
export function loanInfo(data) {
	return request({
		url: '109',
		data: data,
		method: 'POST',
	})
}
// 贷款列表
export function loanInfoTwo(data) {
	return request({
		url: '110',
		data: data,
		method: 'POST',
	})
}
// 个人信息
export function userInfo(data) {
	return request({
		url: '111',
		data: data,
		method: 'POST',
	})
}
// 充值
export function topUp(data) {
	return request({
		url: '112',
		data: data,
		method: 'POST',
	})
}
// 上传图片
export function fileUp(data) {
	return uploads({
		url: '113',
		data: data,
		method: 'POST',
	})
}
// 提现
export function huanKuan(data) {
	return request({
		url: '114',
		data: data,
		method: 'POST',
	})
}
// 还款计划
export function planInfo(data) {
	return request({
		url: '115',
		data: data,
		method: 'POST',
	})
}
// 查询实名
export function queryCertificate(data) {
	return request({
		url: '116',
		data: data,
		method: 'POST',
	})
}
// 修改实名
export function editCertificate(data) {
	return request({
		url: '117',
		data: data,
		method: 'POST',
	})
}
// 贷款统计
export function loansStatistics(data) {
	return request({
		url: '118',
		data: data,
		method: 'POST',
	})
}
// 充值记录
export function topupRecord(data) {
	return request({
		url: '119',
		data: data,
		method: 'POST',
	})
}
// 修改用户信息
export function editUserInfo(data) {
	return request({
		url: '120',
		data: data,
		method: 'POST',
	})
}
// 修改用户信息
export function logout(data) {
	return request({
		url: '121',
		data: data,
		method: 'POST',
	})
}
// 用户认证信息
export function userRenz(data) {
	return request({
		url: '122',
		data: data,
		method: 'POST',
	})
}
// 支付密码确认
export function payPassword(data) {
	return request({
		url: '123',
		data: data,
		method: 'POST',
	})
}
// 提前还款
export function tiqianHuan(data) {
	return request({
		url: '124',
		data: data,
		method: 'POST',
	})
}
// 结清
export function jieQin(data) {
	return request({
		url: '125',
		data: data,
		method: 'POST',
	})
}
// 提前还款
export function tiQian(data) {
	return request({
		url: '126',
		data: data,
		method: 'POST',
	})
}
// 充值卡号
export function cardInfo(data) {
	return request({
		url: '128',
		data: data,
		method: 'POST',
	})
}
// 找回密码
export function getBack(data) {
	return request({
		url: '129',
		data: data,
		method: 'POST',
	})
}
// 修改绑定手机
export function editPhone(data) {
	return request({
		url: '130',
		data: data,
		method: 'POST',
	})
}
// 获取我的客户
export function clientInfo(data) {
	return request({
		url: '131',
		data: data,
		method: 'POST',
	})
}
// 获取下拉信息
export function clientSelect(data) {
	return request({
		url: '132',
		data: data,
		method: 'POST',
	})
}
// 工作信息保存
export function clientSave(data) {
	return request({
		url: '133',
		data: data,
		method: 'POST',
	})
}
// 客户认证信息
export function jobFile(data) {
	return request({
		url: '134',
		data: data,
		method: 'POST',
	})
}
// 协议
export function word(data) {
	return request({
		url: '135',
		data: data,
		method: 'POST',
	})
}
// 获取申请信息
export function queryApply(data) {
	return request({
		url: '136',
		data: data,
		method: 'POST',
	})
}
// 修改申请信息
export function editApply(data) {
	return request({
		url: '137',
		data: data,
		method: 'POST',
	})
}
// 修改手机号、密码、支付密码
export function editPassword(data) {
	return request({
		url: '130',
		data: data,
		method: 'POST',
	})
}
// 提前还款
export function tiqianHuankuan(data) {
	return request({
		url: '138',
		data: data,
		method: 'POST',
	})
}
// 用户已还利息
export function userInterest(data) {
	return request({
		url: '139',
		data: data,
		method: 'POST',
	})
}
// 删除等待审核
export function deleteOrder(data) {
	return request({
		url: '140',
		data: data,
		method: 'POST',
	})
}
// 批量修改利息
export function updateInterest(data) {
	return request({
		url: '141',
		data: data,
		method: 'POST',
	})
}
// 用户已还信息详情
export function userInterestDetails(data) {
	return request({
		url: '142',
		data: data,
		method: 'POST',
	})
}
// 其他收入
export function otherRevenue(data) {
	return request({
		url: '143',
		data: data,
		method: 'POST',
	})
}
// 添加其他收入
export function addOtherRevenue(data) {
	return request({
		url: '144',
		data: data,
		method: 'POST',
	})
}
// 延长计划
export function langPlan(data) {
	return request({
		url: '145',
		data: data,
		method: 'POST',
	})
}